package cn.hhchat.weekly.email;

import cn.hhchat.wp.service.EmailService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * Created this one by HMH on 2017/10/28.
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class SendEmail {

    @Test
    public void sendEmail() {
        emailService.sendHtml("hh23485@126.com", "测试邮件", "hello");
    }

    @Autowired
    private EmailService emailService;

}
